//
//  HavePhoneNumVC.m
//  SDHuiYuShoping
//
//  Created by luojiao on 2017/6/22.
//  Copyright © 2017年 luojiao. All rights reserved.
//

#import "HavePhoneNumVC.h"
#import "CallSeverViewController.h"
#import "ModifyPhoneNumVC.h"

@interface HavePhoneNumVC ()

@end

@implementation HavePhoneNumVC

- (void)viewDidLoad {
    [super viewDidLoad];
    //设置返回按钮
    [self.backButton setImage:[UIImage imageNamed:@"back_white_btn"] forState:UIControlStateNormal];
    [self.backButton setImageEdgeInsets:UIEdgeInsetsMake(0, -50, 0, 0)];
    [self.backButton setTitle:@"返回" forState:UIControlStateNormal];
    [self.backButton setTitleEdgeInsets:UIEdgeInsetsMake(0, -40, 0, 0)];
    
    
    [self.haveCodeButton setImage:[UIImage imageNamed:@"unfold_btn"] forState:UIControlStateNormal];
    [self.haveCodeButton setImageEdgeInsets:UIEdgeInsetsMake(0, 0, 0, -(APP_WIDTH - 40))];
    [self.noCodeButton setImage:[UIImage imageNamed:@"unfold_btn"] forState:UIControlStateNormal];
    [self.noCodeButton setImageEdgeInsets:UIEdgeInsetsMake(0, 0, 0, -(APP_WIDTH - 40))];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)backButton:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
    
}
- (IBAction)haveCodeButton:(id)sender
{
    ModifyPhoneNumVC *modifyPhoneNum = [[ModifyPhoneNumVC alloc] init];
    modifyPhoneNum.titleName = @"绑定新手机";
    [self.navigationController pushViewController:modifyPhoneNum animated:YES];
}

- (IBAction)noCodeButton:(id)sender {
    CallSeverViewController *callSeverVC = [[CallSeverViewController alloc] init];
    [self.navigationController pushViewController:callSeverVC animated:YES];
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
